package codeGeneration;

import lexer.TokenType;

public class OperatorConverter {

	public static String getOperator(TokenType type) {
		switch (type) {
		case ADD:
			return "add";
		case SUBTRACT:
			return "sub";
		case MULTIPLY:
			return "mul";
		case DIVIDE:
			return "div";
		case EQUALS:
			return "eq";
		case NOT_EQUALS:
			return "ne";
		case GREATER_THAN:
			return "gt";
		case LESS_THAN:
			return "lt";
		case GREATER_THAN_OR_EQUAL:
			return "ge";
		case LESS_THAN_OR_EQUAL:
			return "le";
		default:
			return null;
		}
	}
}
